package net.imain.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

/**
 * 服务消费者，消费隔壁的user服务
 *
 * @author uncle
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
public class MovieFeignCustApplication {

	/**
	 * 使用Feign
	 * 		1.添加依赖
	 * 		2.启动类上添加注解
	 * 		3.创建一个接口并添加注解
	 *
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(MovieFeignCustApplication.class, args);
	}
}
